<?php

/*
 * Edit by shengxin
 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
 */

namespace api\mall\model;

/**
 * Description of AddressModel
 *
 * @author PC
 */
class AddressModel extends \think\Model{
    protected $name = 'address';
    
    public function toString(){
        $street = $this->getAttr('district');
        if(empty($street)){
            $street = '';
        }
        return $this->getAttr('province').$this->getAttr('city').$this->getAttr('district').$street.$this->getAttr('detail').','.$this->getAttr('real_name').','.$this->getAttr('phone_number');
    }
}
